﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Microsoft.HomeServer.HomeServerConsoleTab.TV4Home.Server.WHS.AddIn.Wizards.InstallTVServer
{
    public partial class WPDatabaseTypeControl : UserControl
    {
        public WPDatabaseTypeControl()
        {
            InitializeComponent();
        }

        public enum DatabaseType
        {
            MSSQL,
            MySQL,
            SQLAlreadyPresent
        }

        public DatabaseType SelectedDatabaseType
        {
            get
            {
                if (rbMSSQL.Checked)
                    return DatabaseType.MSSQL;
                else if (rbMySQL.Checked)
                    return DatabaseType.MySQL;
                else if (rbSQLAlreadyPresent.Checked)
                    return DatabaseType.SQLAlreadyPresent;

                //default
                return DatabaseType.MySQL;
            }
        }
    }
}
